﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FieldHost {
	public class LongTermDebt {

		public LongTermDebt() {
			//Issue definition
			Issue = new MetaField<int> {

			};
		}

		/// <summary>
		/// 
		/// </summary>
		public MetaField<int> Issue {
			get;
			private set;
		}

		private readonly List<MetaField<int>> _retire = new List<MetaField<int>>();

		/// <summary>
		/// Loan retire (payment)
		/// </summary>
		public IList<MetaField<int>> Retire {
			get {
				return _retire.AsReadOnly();
			}
		}

		public void AddRetire(int value) {
			_retire.Add(new MetaField<int> {
				Value = value
			});
		}
	}
}
